package appapi.service;

import appapi.Request.InspectionPageReq;
import appapi.Vo.OnsitPageVo;
import appapi.Vo.record.InspectWarnVo;
import appapi.Vo.record.OnSiteRecVo;
import appapi.dto.OnsiteRecModel;
import appapi.entity.basic.UserInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/20 9:05
 * @description:
 */
@Repository
public interface IOnsiteinspectionService {

    List<OnsitPageVo> SelectInspectionPage(InspectionPageReq inspectionPageReq);

    List<Map<String, Object>> SelectInspectionList(Long equipId);

    void InsertInspection(OnSiteRecVo dto);

    void UpdateInspection(OnSiteRecVo dto);

    void DelInspection(List<Long> onsitId);

    OnsiteRecModel getDetail(Long onsitId);

    InspectWarnVo GetWarn(UserInfo staffId);

    List<OnsitPageVo> getList(InspectionPageReq req);
}
